define(backboneCommon.getControllerDefine("Media"), function (require,Model,ModelBaseData) {
    var model=new Model();
    var modelBaseData=new ModelBaseData();
    return Backbone.Collection.extend({
        model:  model,
        initialize: function () {
            model.set({modelBaseData:modelBaseData});
        },
        List:function(){
            modelBaseData.getOs();
        },
        Overview:function(){},
        AdSpaceList:function(){},
        AdSpaceReport:function(){},
        getPageList:function(param){
            model.getPageList(param);
        },
        Detail:function(param){
            var id=param?param[0]:null;
            model.getInfo(id);
        },
        operateDelete:function(id){
            model.deleteInfo(id);
        },
        saveInfo: function (json) {
            json.id?model.updateInfo(json):model.addInfo(json);
        }
    });
});